package cn.iocoder.yudao.module.cms.agreement.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Tag(name = "协议规则新增 Request VO")
@Data
public class AgreementCreateReqVO {

    @Schema(description = "标识，如：about_us-关于我们、service_agreement-服务协议、privacy_policy-隐私政策、……", requiredMode = Schema.RequiredMode.REQUIRED, example = "about_us")
    @NotEmpty(message = "标识不能为空")
    private String identify;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "关于我们")
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED, example = """
            <p>这是关于我们的协议规则内容</p>
            """)
    @NotEmpty(message = "内容不能为空")
    private String content;

}
